/*
 * @Author: lvjing lvjing@haoyitec.cn
 * @Date: 2022-09-13 14:45:04
 * @LastEditors: lvjing lvjing@haoyitec.cn
 * @LastEditTime: 2022-09-15 09:30:03
 * @FilePath: \nihss\src\router\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/nihss'
  },
  {
    path: '/nihss',
    name: 'nihss',
    component: () => import('../views/Nihss.vue')
  },
  {
    path: '/nihss-score',
    name: 'nihss-score',
    component: () => import('../views/NihssScore.vue')
  },
  {
    path: '/nihss-graph',
    name: 'nihss-graph',
    component: () => import('../views/NihssGraph.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
